﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace VietThinks.Website
{
    public static class ResourceManager
    {
        public static string Get(string resourceKey, params object[] values)
        {
            var resourceValue = HttpContext.GetGlobalResourceObject(ConfigurationManager.AppSettings["ResourceFileName"], resourceKey);

            if (resourceValue != null)
            {
                return string.Format(resourceValue.ToString(), values);
            }

            return string.Empty;
        }
    }
}